//
// Created by 吴喆 on 2020/4/8.
//

#ifndef SUMMER_FTFONT_H
#define SUMMER_FTFONT_H


#include "Font.h"
#include "Texture.h"

#import <ft2build.h>
#include <freetype/freetype.h>
#include <glm/glm.hpp>


class FTFont : public Font {
public:

public:
    explicit FTFont(std::string &filePath);
    explicit FTFont(const char *filePath);

    ~FTFont() override;

    void init(std::string &filePath) final;

    Character *initCharacter(wchar_t character) final;

private:
    FT_Library ft = {};
    FT_Face face = {};
};


#endif //SUMMER_FTFONT_H
